package site.kitcheng.springboottest.infra.constant;

/**
 * ClassName: Baseconstant
 * Package: site.kitcheng.springboottest.infra.constant
 * Description:
 *
 * @Author jiangCheng
 * @Create 2025/2/7 13:53
 * @Version 1.0
 */
public interface BaseConstant {


    /**
     * 获取工程所在路径
     */
   String USER_DIR= "user.dir";

    /**
     * 文件上传路径
     */
   String PATH ="upload";

    /**
     * 文件分隔符
     */
   String FILE_SEPARATOR = "@";

   /**
    * 密码分隔符
    */
   String PASSWORD_SEPARATOR = ":";

   /**
    * 加密算法
    */
   String ENCRYPTION_ALGORITHMS = "RSA";

    /**
     * 验证码 redis key
     */
     String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * 验证码有效期（分钟）
     */
    public static final Integer CAPTCHA_EXPIRATION = 2;

     interface BaseConstentProfile {

         /**
          * 缓存前缀
          */
         String REIDIS_PROFILE_CODE = "profile:code:";
         /**
          * 用户
          */
         String PROFILE_USER = "user";
         /**
          * 角色
          */
         String PROFILE_ROLE = "role";
         /**
          * 全局
          */
         String PROFILE_GLOBAL = "global";
    }
}
